       
<script language="javascript">
function validate()
{
var num=/^[0-9-]+$/;
var name =/^[a-zA-Z. ]+$/;

if(!name.test(document.form.lastname.value))
    	
    	{
   		alert("Please Enter the Last Name");
    	document.form.lastname.focus();
        return false;
		}
if(!name.test(document.form.firstname.value))
    	
    	{
   		alert("Please Enter the First Name");
    	document.form.firstname.focus();
        return false;
		}
if(document.form.title.value=="")
    	
    	{
   		alert("Please Enter the Book Title");
    	document.form.title.focus();
        return false;
		}
if(document.form.pub.value=="")
    	
    	{
   		alert("Please Enter the Publisher Field ");
    	document.form.pub.focus();
        return false;
		}
if(document.form.pcity.value=="")
    	
    	{
   		alert("Please Enter the Publisher's City ");
    	document.form.pcity.focus();
        return false;
		}		
if(!num.test(document.form.date.value))
    	
    	{
   		alert("Please Enter the Publication Year");
    	document.form.date.focus();
        return false;
		}
if(document.form.pages.value=="")
    	
    	{
   		alert("Please Enter the Page numer");
    	document.form.pages.focus();
        return false;
		}


}

</script>
<div class="mainWarpArea">
    <!-- Begin contentwarp -->
    <div class="contentwarp">
      <div id="register" style="background-color:#FFF;float:left;width:740px;border:1px solid #CCC;">
        <!-- Begin ContentBox -->
  <h2 style="padding-left: 20px;" class="classifiedstitle"><span style="color:#00619C">Referring A book:</span></h2>

  <table width="100%" align="center" border="0" cellpadding="0" cellspacing="0">
    <tbody><tr>
      <td valign="middle" align="left">&nbsp;</td>
    </tr>
    <tr>
      <td valign="middle" align="center">
      <table width="99%" align="center" class="font12">
      
      <tr>
      <td align="center" valign="top">
      <form action="index.php?page=assignment_manager&view=journel&step=generate_book" method="post" onsubmit="return validate();" name="form">

<div id="tableoutborder">
<table border="0" cellpadding="2" cellspacing="2" width="100%" align="center" height="auto">
<tbody>
<tr><td bgcolor="#F0F0F0" height="40"><div align="left"><span class="ScotchBibtabletxtbold">Author/Editor</span></div></td>
  <td bgcolor="#F0F0F0" height="40"><span class="ScotchBibtabletxtsmall">Last Name: *
      <input name="lastname" type="text"  >
  </span></td>
  <td bgcolor="#F0F0F0" height="40"><span class="ScotchBibtabletxtsmall">First Name: *
      <input name="firstname" type="first" >
  </span></td>
</tr>
<tr>
  <td bgcolor="#F0F0F0" height="40"><div align="left"><span class="ScotchBibtabletxtsmall">Second Author (if applicable)</span></div></td>
  <td bgcolor="#F0F0F0" height="40"><span class="ScotchBibtabletxtsmall">Last Name:
         &nbsp;&nbsp; <input name="lastname2"  type="text">
  </span></td>
  <td bgcolor="#F0F0F0" height="40"><span class="ScotchBibtabletxtsmall">
       First Name: &nbsp;&nbsp; <input name="firstname2"  type="text">
  </span></td>
</tr>
<tr>
  <td bgcolor="#F0F0F0" height="40"><div align="left"><span class="ScotchBibtabletxtsmall">Third  Author (if applicable)</span></div></td>
  <td bgcolor="#F0F0F0" height="40"><span class="ScotchBibtabletxtsmall">Last Name:
      &nbsp;&nbsp;  <input name="lastname3"  type="text">
  </span></td>
  <td bgcolor="#F0F0F0" height="40"><span class="ScotchBibtabletxtsmall">
       First Name:&nbsp;&nbsp;    <input name="firstname3"  type="text" >
  </span></td>
</tr>



<tr><td bgcolor="#F0F0F0" height="40"><div align="right"><span class="ScotchBibtabletxtbold">Title of the Book: * </span></div></td>
  <td bgcolor="#F0F0F0"><input name="title" type="text" style="width:230px;"></td>
  <td bgcolor="#F0F0F0" height="40">&nbsp;</td>
</tr>
<tr><td bgcolor="#F0F0F0" height="40"><div align="right"><span class="ScotchBibtabletxtbold">Publisher: *</span></div></td>
  <td bgcolor="#F0F0F0" height="40"><input name="pub" style="width:230px;" type="text" ></td>
  <td bgcolor="#F0F0F0" height="40">&nbsp;</td>
</tr>
<tr><td bgcolor="#F0F0F0" height="40"><div align="right"><span class="ScotchBibtabletxtbold">Publisher's City: *</span></div></td>
  <td bgcolor="#F0F0F0" height="40"><input name="pcity" style="width:180px;" type="text"><span class="ScotchBibtabletxtsmall"> eg: Melbourne  </span></td>
  <td bgcolor="#F0F0F0" height="40">&nbsp;</td>
</tr>

<tr><td bgcolor="#F0F0F0" height="40"><div align="right"><span class="ScotchBibtabletxtbold">Year Published: *</span></div></td>
  <td bgcolor="#F0F0F0" height="40"><input name="date" style="width:200px;" type="text" ><span class="ScotchBibtabletxtsmall"> eg: 2001 </span></td>
  <td bgcolor="#F0F0F0" height="40">&nbsp;</td>
</tr>
<tr><td bgcolor="#F0F0F0" height="40"><div align="right"><span class="ScotchBibtabletxtbold">Edtion: </span></div></td>
  <td bgcolor="#F0F0F0" height="40">
  <select name="edition" style="width:200px;">
      <option selected="selected" value="1st ed.">1st Edition</option>
      <option value="2nd ed.">2nd Edition</option>
      <option value="3rd ed.">3rd Edition</option>
      <option value="4th ed.">4th Edition</option>
      <option value="5th ed.">5th Edition</option>
      <option value="6th ed.">6th Edition</option>
      <option value="7th ed.">7th Edition</option>
      <option value="8th ed.">8th Edition</option>
      <option value="9th ed.">9th Edition</option>
      <option value="10th ed.">10th Edition</option>
      <option value="11th ed.">11th Edition</option>
      <option value="12th ed.">12th Edition</option>
      <option value="13th ed.">13th Edition</option>
      <option value="14th ed.">14th Edition</option>
      <option value="15th ed.">15th Edition</option>
      <option value="16th ed.">16th Edition</option>
      <option value="17th ed.">17th Edition</option>
      <option value="18th ed.">18th Edition</option>
      <option value="19th ed.">19th Edition</option>
      <option value="20th ed.">20th Edition</option>
    </select>
</td>
  <td bgcolor="#F0F0F0" height="40">&nbsp;</td>
</tr>
<tr><td bgcolor="#F0F0F0" height="40"><div align="right"><span class="ScotchBibtabletxtbold">Page number(s): *</span></div></td>
  <td bgcolor="#F0F0F0" height="40"><input name="pages" style="width:200px;" type="text" ><span class="ScotchBibtabletxtsmall"> eg:p23-25 </span></td>
  <td bgcolor="#F0F0F0" height="40">&nbsp;</td>
</tr>

<tr><td colspan="4" align="center" bgcolor="#F0F0F0" height="40" valign="middle" >
  <span class="ScotchBibtabletxtsmall">
  <input img="" value="Generate Bibliography" alt="genBib" type="submit" border="0">
  </span>
</td></tr></tbody></table>
</div>
</form>
     
      </td>
      </tr>
        </table>
    
      </td>
    </tr>
    <tr>
      <td valign="middle" align="left">&nbsp;</td>
    </tr>
  </tbody></table>


      </div>      
      
     
      <!-- End contentwarp -->
       <?php include("includes/right_content.php");?>
      <div style="clear:both;"></div>
      
    </div>
    <!-- End mainWarpArea -->
  </div>